/************************************************************************************

Class Name	:	Main.class
Description	:	Used to implement a help menu to the user
Author		:	W.S.V.K.Koggala <v.koggala@gmail.com>

*************************************************************************************/

package com.androidcal.calculator;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;


public class Help extends Activity implements OnClickListener{
    
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
        setContentView(R.layout.ancal);
        
        TextView text = (TextView) findViewById(R.id.batteryText);
        text.setText("Click mA to enter your first matrix in the above left textfield." +
        		"Click mB to enter your second matrix in the above middle textfield." +
        		"A+B calculates the addition of two matrices." +
        		"A*B calculates the multiplication of two matrices." +
        		"DET calculates the determinant of the mA matrix." +
        		"ADJ calculates the adjoint of the mA matrix." +
        		"[-1] calculates the inverse of mA matrix.");
        
        Button button = (Button) findViewById(R.id.returnButton);
        button.setOnClickListener(this);
        
    }

	@Override
	public void onClick(View v) {
		finish();
		
	}

}
